<?php

use yii\helpers\Html;
use metronic\grid\GridView;
use common\models\SeoKeywords;

/* @var $model common\models\Category */
?>

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],
        [
            'attribute' => 'type',
            'format' => 'raw',
            'enableSorting' => false,
            'value' => function($model) {
                return SeoKeywords::$seoType[$model->type];
            }
        ],
        'title',
        'keywords',
        'description',
        [
            'class' => 'metronic\grid\ActionColumn',
            'template' => '{update} {delete}',
        ],

    ],
]); ?>
